
import service from '../utils/axios.js'


//项目列表
export const projectList = (data) =>{
    return service.get('/api/admin/project/pageItems',{params:data})
}

//保存项目
export const projectAdd = (data) =>{
    return service.post('/api/admin/project/save',data)
}


//变更项目状态
export const projectUpdate = (data) =>{
    return service.post('/api/admin/project/updateStatus',data)
}


// 资方列表
export const capitalList = (data) =>{
    return service.get('/api/admin/capital/pageItems',{params:data})
}

//保存资方
export const capitalAdd = (data) =>{
    return service.post('/api/admin/capital/save',data)
}


// 删除资方
export const capitalDelete = (data) =>{
    return service.post('/api/admin/capital/delete',data)
}

// 店铺列表
export const mallList = (data) =>{
    return service.get('/api/admin/mall/pageItems',{params:data})
}
//变更店铺状态
export const mallUpdate = (data) =>{
    return service.post('/api/admin/mall/updateStatus',data)
}
//删除店铺 /
export const mallDelete = (data) =>{
    return service.post('/api/admin/mall/delete',data)
}
//添加店铺
export const mallAdd = (data) =>{
    return service.post('/api/admin/mall/save',data)
}

//美团店铺列表
export const getMalls = (data) =>{
    return service.get('/api/admin/mall/malls',{params:data})
}
//刷新美团店铺
export const updateMalls = (data) =>{
    return service.get('/api/admin/mall/refreshMall',{params:data})
}


// 分账列表
export const getLogList = (data) =>{
    return service.get('/api/admin/finance/mtLogs',{params:data})
}


//到账列表  /api/admin/finance/bankLogs
export const getBankLogList = (data) =>{
    return service.get('/api/admin/finance/bankLogs',{params:data})
}


//爬虫列表

export const accountsLogList = (data) =>{
    return service.get('/api/admin/system/accounts',{params:data})
}


export const queryDiffRange = (data) =>{
    return service.get('/api/admin/mall/queryDiffRange',{params:data})
}
export const diffRangeSave = (data) =>{
    return service.post('/api/admin/mall/diffRangeSave',data)
}


//回款统计
export const getStatistics = (data) =>{
    return service.get('/api/admin/counts/backMoney/pageItems',{params:data})
}


//店铺数据 录入
export const recordByHandle = (data) =>{
    return service.post('/api/admin/mall/recordByHandle',data)
}
